<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
	<title>小白船商城</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link type="text/css" rel="stylesheet" href="css/bootstrap.css">
	<link type="text/css" rel="stylesheet" href="css/style.css">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="layer/layer.js"></script>
	<script type="text/javascript" src="js/cart.js"></script>
</head>
<body>
	
	<jsp:include page="header.jsp"/>
	
	<!--banner-->
	<c:forEach var="top" items="${top1List}" end="0">
		<div class="banner">
			<div class="container">
				<h2 class="hdng"><a href="detail?goodid=${top.good.id}">${top.good.name}</a><span></span></h2>
				<p>今日精选推荐</p>
				<a class="banner_a" href="javascript:;" onclick="buy(${top.good.id})">加入购物车</a>
				<div class="banner-text">		
					<a href="detail?goodid=${top.good.id}">
						<img src="../${top.good.cover}" alt="${top.good.name}" width="350" height="350">
					</a>	
				</div>
			</div>
		</div>
	</c:forEach>			
	<!--//banner-->
	
	<div class="subscribe2"></div>
	
	<!--gallery-->
	<div class="gallery">
		<div class="container">

			<div class="heading-box">
				<h2  class="fancy-heading" style="font-size:23px">热销推荐</h2>
			</div>
			<div class="gallery-grids">
				<ul class="ul-products">
				<c:forEach var="top" items="${top2List}" end="5">
					<li class="li-product">
						<a href="detail?goodid=${top.good.id}" class="a-product">
							<div class="img-box">
								<img src="../${top.good.cover}" class="img-product" alt="${top.good.name}" width="418" height="418"/>
							</div>
							<h2 class="title-product">${top.good.name}</h2>
							<span class="price">
								<span class="price__wrapper">
									<span class="woocommerce-Price-amount">
										<span class="woocommerce-Price-currencySymbol">¥</span>
										${top.good.price}
									</span>
									<span class="price-label">Price</span>
								</span>
							</span>
						</a>
						<a class="shop" href="javascript:;" onclick="buy(${top.good.id})">加入购物车</a>
					</li>
				</c:forEach>
				</ul>
			</div>
			
			<div class="clearfix"></div>
			<div style="height: 5em;display: block"></div>
			<div class="heading-box">
				<h2  class="fancy-heading" style="font-size:23px">新品推荐</h2>
			</div>
			<div class="gallery-grids">
				<ul class="ul-products">
				<c:forEach var="top" items="${top3List}" end="8">
					<li class="li-product">
						<a href="detail?goodid=${top.good.id}" class="a-product">
							<div class="img-box">
								<img src="../${top.good.cover}" class="img-product" alt="${top.good.name}" width="418" height="418"/>
							</div>
							<h2 class="title-product">${top.good.name}</h2>
							<span class="price">
								<span class="price__wrapper">
									<span class="woocommerce-Price-amount">
										<span class="woocommerce-Price-currencySymbol">¥</span>
										${top.good.price}
									</span>
									<span class="price-label">Price</span>
								</span>
							</span>
						</a>
						<a class="shop" href="javascript:;" onclick="buy(${top.good.id})">加入购物车</a>
					</li>

				</c:forEach>
				</ul>
			</div>
		</div>
	</div>
	<!--//gallery-->
	
	<!--subscribe-->
	<!--//subscribe-->
	
	
	<jsp:include page="footer.jsp"/>

</body>
</html>